package com.itheima.d4.ChroUnit;

import java.time.LocalDate;
import java.time.temporal.ChronoUnit;

public class Test {
    public static void main(String[] args) {
        LocalDate localDate = LocalDate.now();
        System.out.println("today"+localDate);
        LocalDate birthDate = LocalDate.of(1993,6,29);
        System.out.println("birthday"+birthDate);
        System.out.println(ChronoUnit.YEARS.between(birthDate,localDate));
        System.out.println(ChronoUnit.MONTHS.between(birthDate, localDate));
    }
}

